<?php
/*
	Copyright 2010 Ping Shin Ching (ping_sc@hotmail.com)

	Licensed under the Apache License, Version 2.0 (the "License");
	you may not use this file except in compliance with the License.
	You may obtain a copy of the License at

		http://www.apache.org/licenses/LICENSE-2.0

	Unless required by applicable law or agreed to in writing, software
	distributed under the License is distributed on an "AS IS" BASIS,
	WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
	See the License for the specific language governing permissions and
	limitations under the License.
	
	Project Mugatiya: http://www.tidytutorials.com/p/mugatiya.html
 */


/*
 * Specify all the adds here. 
 * G - General, M - Mature, R - Restricted, U - Unclassified
 */
$addprefix			= "http://127.0.0.1:8080/super/spr";
$addpageG 			= "$addprefix/ads/pageG1.html";
$addpageM 			= "$addprefix/ads/pageM1.html";
$addpageR 			= "$addprefix/ads/pageR1.html";
$addpageU 			= "$addprefix/ads/pageU1.html";


/*
 * My proxy title
 */
$externalproxytitle = "You are using Land_Warrior_One from the CodeDiaries Proxy Network";

/*
 * Percentage of our adds to show 
 */
$percentintadds = 0;


/*
 * Get the relevant add based on the rating
 */
function getMyAdd($rating){
	global 	$addpageG,
	$addpageR,
	$addpageM,
	$addpageU;
	
	if($rating=="G")
		return $addpageG;
	else if($rating=="R")
		return $addpageR;
	else if($rating=="M")
		return $addpageM;
	else
		return $addpageU;	
}


/*
 * Get the title that will appear on the proxy menu bar
 */
function getMyProxyTitle(){
	global $externalproxytitle;	
	return 	$externalproxytitle;	
}

?>
